<?php

declare(strict_types=1);
/**
 * This file is part of Hyperf.
 *
 * @link     https://www.hyperf.io
 * @document https://doc.hyperf.io
 * @contact  group@hyperf.io
 * @license  https://github.com/hyperf/hyperf/blob/master/LICENSE
 */

namespace App\Controller\Notify;

use App\Controller\AbstractController;
use App\Model\Admin;
use App\Model\Order;
use App\Model\SystemConfigValue;
use App\Model\User;


use App\Model\UserBalance;
use App\Model\UserBalanceLog;
use App\Notice\TaskAliPayNotice;
use App\Notice\TaskNotice;
use App\Service\OrderService;
use App\Service\Pay\AliPay;
use App\Service\Pay\PayFactory;
use App\Service\UserService;
use Endroid\QrCode\Writer\PngWriter;
use Hyperf\DbConnection\Db;
use Hyperf\Di\Annotation\Inject;
use Hyperf\HttpServer\Annotation\AutoController;
use Hyperf\HttpServer\Annotation\Controller;
use Hyperf\HttpServer\Annotation\Middleware;
use Hyperf\HttpServer\Annotation\RequestMapping;
use Gregwar\Captcha\CaptchaBuilder;

use Endroid\QrCode\QrCode;
use App\Middleware\CheckLoginMiddleware;

use Yj\Apidog\Annotation\PostApi;
use Yj\Apidog\Annotation\GetApi;
use Hyperf\Apidog\Annotation\FormData;
use Yj\Apidog\Annotation\ApiController;

/**
 * @ApiController(tag="支付回调",prefix="notify/task",description="")
 */
class TaskController extends AbstractController
{
    /**
     * @Notes:【】
     * @Date: 2022-06-05 21:05
     * @GetApi(path="wx", description="客服")
     * @PostApi(path="wx", description="客服")
     */
    public function wx()
    {
        App(TaskNotice::class)->notice();
    }

    /**
     * @Notes:【】
     * @Date: 2022-06-05 21:05
     * @GetApi(path="alipay", description="客服")
     * @PostApi(path="alipay", description="客服")
     */
    public function alipay()
    {
        App(TaskAliPayNotice::class)->notice();
    }
}


